/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package escr.persistencia;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Aditardo
 */
@Entity
@Table(name = "nummenu")
@NamedQueries({@NamedQuery(name = "Nummenu.findByIdnumMenu", query = "SELECT n FROM Nummenu n WHERE n.idnumMenu = :idnumMenu"), @NamedQuery(name = "Nummenu.findByRefNummenu", query = "SELECT n FROM Nummenu n WHERE n.refNummenu = :refNummenu"), @NamedQuery(name = "Nummenu.findByTituNummenu", query = "SELECT n FROM Nummenu n WHERE n.tituNummenu = :tituNummenu"), @NamedQuery(name = "Nummenu.findByFechNummenu", query = "SELECT n FROM Nummenu n WHERE n.fechNummenu = :fechNummenu")})
public class Nummenu implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "idnumMenu", nullable = false)
    private Integer idnumMenu;
    @Column(name = "refNummenu")
    private String refNummenu;
    @Column(name = "tituNummenu")
    private String tituNummenu;
    @Column(name = "fechNummenu")
    @Temporal(TemporalType.DATE)
    private Date fechNummenu;

    public Nummenu() {
    }

    public Nummenu(Integer idnumMenu) {
        this.idnumMenu = idnumMenu;
    }

    public Integer getIdnumMenu() {
        return idnumMenu;
    }

    public void setIdnumMenu(Integer idnumMenu) {
        this.idnumMenu = idnumMenu;
    }

    public String getRefNummenu() {
        return refNummenu;
    }

    public void setRefNummenu(String refNummenu) {
        this.refNummenu = refNummenu;
    }

    public String getTituNummenu() {
        return tituNummenu;
    }

    public void setTituNummenu(String tituNummenu) {
        this.tituNummenu = tituNummenu;
    }

    public Date getFechNummenu() {
        return fechNummenu;
    }

    public void setFechNummenu(Date fechNummenu) {
        this.fechNummenu = fechNummenu;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idnumMenu != null ? idnumMenu.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Nummenu)) {
            return false;
        }
        Nummenu other = (Nummenu) object;
        if ((this.idnumMenu == null && other.idnumMenu != null) || (this.idnumMenu != null && !this.idnumMenu.equals(other.idnumMenu))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "escr.persistencia.Nummenu[idnumMenu=" + idnumMenu + "]";
    }

}
